package noyau;

import java.io.Serializable;
import java.util.ArrayList;


public class Test implements Serializable {
private ArrayList<Question> test;
private String nom;
public Test(String nom){
    this.nom=nom;
    this.test=new ArrayList<Question> ();
}
public void ajoutQuestion(Question ques){
    test.add(ques);
    
}
public void supprimerQuestion(Question ques){
    test.remove(ques);
}
    public String toString(){
        String k="";

        for (Question aTest : test) {
            k = k + aTest + "\n";
        }
      return k;
    }

    public String getNom() {
        return nom;
    }

    public ArrayList<Question> getTest() {
        return test;
    }
}
